package com.monicash.monicash.base

import android.content.Context

class SaveZiLiPageTool(context: Context) {
    private var tool: SharedPreferencesZiLiPageTool? = null
    private val name = "info"

    init {
        if (tool == null) {
            tool = SharedPreferencesZiLiPageTool(context.applicationContext, name)
        }
    }

    fun puttKeyValue(key: String?, value: String?) {
        tool!!.put(key, value!!)
    }

    fun getKey(key: String?): String? {
        return tool?.get(key, "") as? String?
    }

    companion object {
        const val geoIpKey = "geoIpKey"
    }
}